<template>
    <div v-if="props.showtype == 'img'">
        <el-image style="width: 100%;" :src="props.url" :zoom-rate="1.2" :max-scale="7" :min-scale="0.2" fit="cover" />
    </div>
    <div v-if="props.showtype == 'video'">
        <video class="order_show--video" :src="props.url" controls style="object-fit: cover" width="100%"></video>
    </div>
</template>
<script setup>

const props = defineProps({
    showtype: {
        type: String,
        default: ""
    },
    url: {
        type: String,
        default: ""
    }
});
</script>
